package com.jwthhealth_pub.community.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.jwthhealth_pub.R;
import com.jwthhealth_pub.common.base.BaseActivity;
import com.jwthhealth_pub.common.view.TitleLayout;
import com.jwthhealth_pub.community.view.adapter.CommunityApplyDocCertAdapter;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by liuzhen on 2017/12/19.
 */

public class CommunityDocApplyCertificationActivity extends BaseActivity {

    @BindView(R.id.rv_community_docapply_certs)
    RecyclerView rvCerts;
    @BindView(R.id.title_layout)
    TitleLayout titleLayout;

    @Override
    protected void title() {
        titleLayout.setOnTitleLayoutListener(new TitleLayout.TitleLayoutListener() {
            @Override
            public void leftclick() {
                finish();
            }

            @Override
            public void leftTextClick() {

            }

            @Override
            public void rightclick() {

            }

            @Override
            public void rightTextClick() {

            }
        });
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_community_docapply_certification);
        ButterKnife.bind(this);
        initCerts();
    }

    private void initCerts() {
        rvCerts.setLayoutManager(new GridLayoutManager(this, 2));
        rvCerts.setAdapter(new CommunityApplyDocCertAdapter(this));
    }
}
